package com.summer.framework.gate.server.config;

import com.summer.framework.gate.server.filter.MyErrorFilter;
import org.springframework.cloud.netflix.zuul.filters.post.SendErrorFilter;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @auther: 杨杰
 * @date: 2019/5/16 14:51
 * @description:
 */
@Configuration
public class SendErrorFilterConfig {

    @Bean
    SendErrorFilter sendErrorFilter() {
        return new MyErrorFilter();
    }

    @Bean
    MyErrorFilter myErrorFilter() {
        return new MyErrorFilter();
    }

}
